package cn.com.cifi.mars.mapper.mars;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cn.com.cifi.mars.entity.DmDmSupplyCompareDetail;
import cn.com.cifi.mars.entity.common.ProjectByStages;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author plx
 * @since 2020-02-18
 */
public interface DmDmSupplyCompareDetailMapper extends BaseMapper<DmDmSupplyCompareDetail> {

	int deleteYearData(@Param("year")String year);
	
	int deleteByDeadlineDate(@Param("yearMonth") String yearMonth);
	
	void insertBatch(@Param("dmDataList")List<DmDmSupplyCompareDetail> dmDataList);

	List<DmDmSupplyCompareDetail> selectProject(@Param("deadline")String deadline);
	
	List<DmDmSupplyCompareDetail> selectStageList(@Param("deadline")String deadline,@Param("status")String status);

	List<DmDmSupplyCompareDetail> selectStageDataList(@Param("stageId")String stageId);

	List<ProjectByStages> selectProjectParentList();

	List<DmDmSupplyCompareDetail> selectAllList(@Param("deadline")String deadline);

	List<Map<String, Object>> selectBaseData(@Param("currentYearMonth") String currentYearMonth);

	


}
